package com.yohann.designPattern.mediator;

import java.util.Date;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author Yohann
 * @since 2021/2/13 15:37
 */
public class User {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(String name) {
        this.name = name;
    }

    public void sendMessage(String message) {
        System.out.println(new Date().toString()
                + " [" + name + "] : " + message);
    }
}